package com.xhdx;
/**
 * 设置 JVM 参数为 -XX:+PrintGCDetails
 * @author lenovo
 *
 */
public class GcTest {

    public static void main(String[] args) {
        Object obj = new Object();
        System.gc();
        System.out.println();
        obj = new Object();
        obj = new Object();
        System.gc();
        System.out.println();
    }

}
